package com.diaohw.platform.remote.file;

import com.diaohw.platform.common.constant.ServiceConstant;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 文件请求
 */
@FeignClient(name = ServiceConstant.file, url = "${platform.openfeign.file:}", contextId = "downloadRemoteService")
public interface DownloadRemoteService {

    /**
     * 文件下载
     */
    @Operation(summary = "文件下载")
    @PostMapping("/download/{id}")
    byte[] download(@PathVariable("id") String id);


}
